/* ============================================================
   ALKAYA TOURS — CSS PRINCIPAL
   Organización:
   1. Variables y reset
   2. Tipografía base
   3. Header y navegación
   4. Hero / Portada
   5. Secciones de contenido general
   6. Componente: flex imagen + texto (compartido / privado / about)
   7. Banners con imagen de fondo
   8. Botones
   9. Footer
   10. Contacto: formulario + mapa
   11. Media queries (todas juntas al final)
   ============================================================ */


/* ============================================================
   1. VARIABLES Y RESET
   ============================================================ */
   :root {
    --color-primary:   #1b0f65;
    --color-accent:    #ff7300;
    --color-white:     #ffffff;
    --color-light:     #fcfcfc;
    --font-main:       'Khand', sans-serif;
    --radius:          8px;
    --shadow:          0 4px 8px rgba(0, 0, 0, 0.1);
    --transition:      all 0.3s ease;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
  }
  
  
  /* ============================================================
     2. TIPOGRAFÍA BASE
     ============================================================ */
  h3 {
    font-weight: 300;
    font-size: 32px;
    line-height: 1.5;
    text-align: center;
  }
  
  h4 {
    font-weight: 500;
    font-size: 33px;
    line-height: 1.5;
    text-align: center;
  }
  
  p {
    font-weight: 200;
    font-size: 22px;
    line-height: 1.5;
  }
  
  ul {
    font-weight: 200;
    font-size: 19px;
    line-height: 1.5;
    list-style:circle;
  }
  
  
  /* ============================================================
     3. HEADER Y NAVEGACIÓN
     ============================================================ */
  header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 2rem;
    background-color: var(--color-white);
  }
  
  .logo {
    max-width: 7rem;
  }
  
  .nav-list {
    list-style: none;
    display: flex;
    gap: 1rem;
  }
  
  .nav-list li {
    margin-left: 2rem;
  }
  
  .nav-list li a {
    text-decoration: none;
    color: var(--color-primary);
    font-weight: lighter;
  }
  
  .abrir-menu,
  .cerrar-menu {
    display: none;
  }
  
  /* Botón bandera */
  .topbar {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 6px 2rem;
    background-color: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
  }
  
  #lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: 'Khand', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-primary);
  }
  
  #lang-btn:hover {
    opacity: 0.7;
  }
  
  #lang-btn span#lang-flag {
    font-size: 20px;
  }
  
  
  /* ============================================================
     4. HERO / PORTADA
     ============================================================ */
  .box_portada {
    width: 100%;
    height: 700px;
    background-image: url("./imgWEB/portadalkaya.jpg");
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .titulo {
    color: var(--color-white);
    font-size: 80px;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    position: relative;
    z-index: 10;
    margin: 10%;
  }
  
  
  /* ============================================================
     5. SECCIONES DE CONTENIDO GENERAL
     ============================================================ */
  body {
    margin: 0 auto;
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    font-weight: 300;
  }
  
  .box1st {
    width: 100%;
    margin-top: 25px;
    padding: 40px 10%;
    background-color: var(--color-white);
    display: block;
  }
  
  .box1stpadd {
    width: 100%;
    padding: 10px 0;
    display: block;
  }
  
  .box1stpaddboton {
    width: 80%;
    padding: 10px 0;
    text-align: center;
  }
  
  .espacio {
    width: 100%;
    height: 150px;
  }
  
  .empresalocal {
    font-size: 24px;
    line-height: 1.5;
    text-align: center;
  }
  
  
  /* ============================================================
     6. COMPONENTE: FLEX IMAGEN + TEXTO
     Usado en: .compartido, .privado, .imgABAJO, about
     ============================================================ */
  
  .compartido,
  .privado,
  .imgABAJO {
    width: 100%;
    background-color: var(--color-light);
    padding: 40px 0;
  }
  
  .imgABAJO {
    background-color: var(--color-white);
  }
  
  /* Fila flex común */
  .flex-container,
  .flex-containerpri,
  .flex-containerimgder {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 24px;
    width: 80%;
    margin: 0 auto;
    padding: 30px 0;
    flex-direction: row;
  }
  
  /* Cajas de texto */
  .caja2,
  .caja3,
  .caja3A,
  .caja3ABC,
  .caja3ABCD {
    flex: 1;
    min-width: 280px;
    max-width: 500px;
    min-height: 400px;
    background-color: var(--color-white);
    border: 2px solid var(--color-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    gap: 20px;
  }
  
  /* Cajas de imagen */
  .caja1,
  .caja4,
  .caja4A,
  .caja4ABC,
  .caja4ABCD {
    flex: 1;
    min-width: 280px;
    max-width: 500px;
    min-height: 400px;
    overflow: hidden;
    position: relative;
    border-radius: var(--radius);
  }
  
  /* Imágenes dentro de las cajas */
  .caja1 img,
  .caja4 img,
  .caja4A img,
  .caja4ABC img,
  .caja4ABCD img,
  .imgsharedtour,
  .imgder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }
  
  
  /* ============================================================
     7. BANNERS CON IMAGEN / COLOR DE FONDO
     ============================================================ */
  .box_footer,
  .box1stcom,
  .box1st3DAY,
  .box1stPRIV,
  .box1stABOUT {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    padding: 40px 20px;
    text-align: center;
  }
  
  .box_footer {
    height: 530px;
    background-image: url("./imgWEB/thunupa.jpg");
  }
  
  .box1stcom {
    height: 400px;
    background-image: url("imgWEB/BANDERAS1.jpeg");
  }
  
  .box1st3DAY {
    height: 400px;
    background-image: url("imgWEB/tour3dia.jpg");
  }
  
  .box1stPRIV {
    height: 250px;
    background-color: var(--color-primary);
    background-image: none;
    background-attachment: initial;
  }
  
  .box1stABOUT {
    height: 250px;
    background-color: var(--color-accent);
    background-image: none;
    background-attachment: initial;
  }
  
  /* Títulos sobre banners */
  .titulo-thunupa,
  .titleshared {
    color: var(--color-white);
    font-size: 40px;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    position: relative;
    z-index: 10;
  }
  
  /* Footer inferior pequeño */
  .pie {
    width: 100%;
    padding: 1rem;
    background-color: var(--color-primary);
  }
  
  .box_footerB {
    width: 100%;
    height: 50px;
    background-color: var(--color-primary);
  }
  
  /* Sección contacto/footer principal */
  .box_footerCONTACTANOS {
    width: 100%;
    height: auto;
    padding: 50px 20px 60px;
    background-color: var(--color-primary);
  }
  
  .boxCONTACTANOS {
    width: 100%;
    color: var(--color-white);
    font-weight: 800;
    line-height: 1.5;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
  }
  
  
  /* ============================================================
     8. BOTONES
     ============================================================ */
  .btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
    border: 2px solid var(--color-accent);
    border-radius: var(--radius);
    background-color: transparent;
    transition: var(--transition);
    cursor: pointer;
  }
  
  .btn-whatsapp:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
  }
  
  button.btn-whatsapp {
    width: 100%;
    padding: 13px;
    background: var(--color-accent);
    color: var(--color-white);
    border: none;
    font-size: 16px;
  }
  
  button.btn-whatsapp:hover {
    background: var(--color-accent);
    color: var(--color-white);
  }
  
  
  /* ============================================================
     9. FOOTER
     ============================================================ */
  .footer {
    color: #fff;
    padding: 40px 20px;
    font-family: Arial, sans-serif;
  }
  
  /* Fila 1: Logo + título alineados */
  .footer-top {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-left: 10%;
  }
  
  .footer-logo {
    width: 80px;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
  }
  
  .footer-title {
    margin: 0;
  }
  
  /* Fila 2: Columnas */
  .footer-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
  }
  
  .footer-col h4 {
    margin-bottom: 10px;
  }
  
  .footer-col ul {
    list-style: none;
    padding: 0;
    margin-left: 20%;
  }
  
  .footer-col li {
    margin-bottom: 10px;
    line-height: 1.4;
  }
  
  .footer a {
    color: #fff;
    text-decoration: none;
  }
  
  .footer a:hover {
    text-decoration: underline;
  }
  
  
  /* ============================================================
     10. CONTACTO: FORMULARIO + MAPA
     ============================================================ */
  .flex-containerPRIVADO {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 24px;
    width: 80%;
    margin: 0 auto;
    padding: 30px 0;
  }
  
  .flex-containerPRIVADO .caja3ABCD {
    flex: 0 0 60%;
    max-width: 60%;
  }
  
  .flex-containerPRIVADO #map {
    flex: 0 0 38%;
    max-width: 38%;
    min-height: 420px;
    border-radius: var(--radius);
    overflow: hidden;
  }
  
  
  /* ============================================================
     11. MEDIA QUERIES
     ============================================================ */
  
  /* — Tablet y móvil: hasta 730px — */
  @media screen and (max-width: 730px) {
  
    /* Navegación móvil */
    .abrir-menu,
    .cerrar-menu {
      display: block;
      border: 0;
      font-size: 2rem;
      background-color: transparent;
      cursor: pointer;
    }
  
    .abrir-menu { color: #1c1c1c; }
    .cerrar-menu { color: #ececec; }
  
    .nav {
      opacity: 0;
      visibility: hidden;
      display: flex;
      flex-direction: column;
      align-items:flex-end;
      gap: 1rem;
      position: fixed;
      top: 0;
      right: 0;
      width: 50%;
      bottom: 0;
      background-color: #1c1c1c;
      padding: 2rem;
      box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .5);
      z-index: 1000;
    }
  
    .nav.visible {
      opacity: 1;
      visibility: visible;
    }
  
    .nav-list {
      flex-direction: column;
      align-items: flex-end;
    }  
    
    .nav-list li {
      width: 100%;
      text-align: right;
    }

    .nav-list li a { 
      color: #ececec;
      display: block;
      width: 100%;
      text-align: right;
    }
  
    body.no-scroll { overflow: hidden; }
  
    /* Topbar y bandera */
    .topbar { display: none; }
  
    #lang-btn { display: none; }
  
    .lang-mobile {
      display: block;
      margin-top: 10px;
    }
  
    #lang-btn-mobile {
      background: transparent;
      border: none;
      font-size: 32px;
      cursor: pointer;
      padding: 4px;
    }
  
    /* Banners: desactivar fixed en móvil (bug iOS/Android) */
    .box_portada,
    .box_footer,
    .box1stcom,
    .box1st3DAY {
      background-attachment: scroll;
    }
  
    /* Hero */
    .titulo { font-size: 40px; }
  
    /* Secciones de contenido */
    .empresalocal {
      font-size: 20px;
      padding: 10px;
    }
  
    .titulo-thunupa {
      font-size: 24px;
      line-height: 1.3;
      padding: 10px;
    }
  
    /* Filas flex: apilar en columna */
    .flex-container,
    .flex-containerpri,
    .flex-containerimgder {
      flex-direction: column;
      align-items: center;
      gap: 16px;
      width: 95%;
      padding: 16px 0;
    }
  
    /* Invertir orden donde la imagen va abajo en móvil */
    .flex-containerpri,
    .flex-containerimgder {
      flex-direction: column-reverse;
    }
  
    /* Todas las cajas: ancho completo */
    .caja1, .caja2,
    .caja3, .caja4,
    .caja3A, .caja4A,
    .caja3ABC, .caja4ABC,
    .caja3ABCD, .caja4ABCD {
      width: 100%;
      max-width: 95%;
      min-height: unset;
      height: auto;
    }
  
    /* Cajas de imagen: altura fija */
    .caja1, .caja4, .caja4A, .caja4ABC, .caja4ABCD {
      height: 280px;
    }
  
    /* Formulario + mapa: apilar en columna */
    .flex-containerPRIVADO {
      flex-direction: column;
      width: 95%;
    }
  
    .flex-containerPRIVADO .caja3ABCD,
    .flex-containerPRIVADO #map {
      flex: 1 1 100%;
      max-width: 100%;
      width: 100%;
    }
  
    .flex-containerPRIVADO #map {
      height: 300px;
      min-height: 300px;
    }
  
    /* Footer móvil */
    .footer { text-align: center; }
  
    .footer-top {
      flex-direction: column;
      align-items: center;
      padding-left: 0;
      gap: 8px;
    }
  
    .footer-title { text-align: center; }
  
    .footer-bottom {
      grid-template-columns: 1fr;
      justify-items: center;
      text-align: center;
      gap: 25px;
    }
  
    .footer-col ul {
      margin-left: 0;
      padding: 0;
    }
  
    .footer-col li { text-align: center; }
  }
  
  /* — Móvil pequeño: hasta 500px — */
  @media screen and (max-width: 500px) {
    .titulo-thunupa { font-size: 20px; }
    .empresalocal   { font-size: 18px; }
    .titulo         { font-size: 32px; }
  }
  
  
  /* ============================================================
     OTROS
     ============================================================ */
  .contacto,
  .ubicación {
    font-style: italic;
    font-weight: 800;
    font-size: larger;
    text-decoration: none;
    text-align: left;
  }
  
  .fa6 {
    font-size: 30px;
    padding: 15px;
    color: darkblue;
  }

  /* ============================================================
   TÉRMINOS Y CONDICIONES
   ============================================================ */
.terminos-wrap {
  max-width: 800px;
  margin: 40px auto 0;
  padding: 0 10px;
}

.terminos-titulo {
  font-size: 28px;
  font-weight: 500;
  color: var(--color-primary);
  text-align: left;
  margin-bottom: 4px;
}

.terminos-fecha {
  font-size: 14px;
  color: #888;
  margin-bottom: 20px;
}

.terminos-intro {
  font-size: 17px;
  margin-bottom: 30px;
  border-left: 3px solid var(--color-accent);
  padding-left: 16px;
}

.terminos-seccion {
  margin-bottom: 24px;
}

.terminos-seccion h5,
.terminos-recordatorios h5 {
  font-size: 18px;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.terminos-seccion p,
.terminos-recordatorios p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 8px;
}

.terminos-recordatorios {
  margin-top: 32px;
  background-color: var(--color-light);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.terminos-recordatorios ul {
  font-size: 16px;
  line-height: 1.8;
  padding-left: 20px;
  margin-bottom: 12px;
}

.terminos-recordatorios a {
  color: var(--color-accent);
  text-decoration: none;
}

.terminos-recordatorios a:hover {
  text-decoration: underline;
}

/* ============================================================
   FORMULARIO DE CONTACTO
   ============================================================ */

   .form-wrap,
   #contactForm {
     display: flex;
     flex-direction: column;
     gap: 14px;
     width: 100%;
     margin-top: 16px;
   }
   
   .field {
     display: flex;
     flex-direction: column;
     gap: 5px;
   }
   
   .field label {
     font-size: 14px;
     font-weight: 500;
     color: var(--color-primary);
   }
   
   .field input,
   .field select,
   .field textarea {
     padding: 10px 12px;
     border: 1.5px solid #ccc;
     border-radius: var(--radius);
     font-family: var(--font-main);
     font-size: 15px;
     transition: border-color 0.2s;
     background-color: #fff;
     color: #222;
   }
   
   .field input:focus,
   .field select:focus,
   .field textarea:focus {
     outline: none;
     border-color: var(--color-primary);
   }
   
   .field input.error,
   .field select.error,
   .field textarea.error {
     border-color: #e53935;
   }
   
   .field-group {
     display: flex;
     gap: 10px;
   }
   
   /* Selector de método de contacto */
   .method-selector {
     display: flex;
     gap: 12px;
     margin-top: 4px;
   }
   
   .method-option {
     display: flex;
     align-items: center;
     gap: 8px;
     cursor: pointer;
     font-size: 15px;
     
     width: 100%;
     padding: 8px 12px;

     justify-content:flex-start;
     border: 1.5px solid #ccc;
     border-radius: var(--radius);
     transition: var(--transition);
   }
   
/* Ocultar radio nativo sin sacar del DOM */
.method-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Indicador visual custom */
.method-option .radio-dot {
  flex-shrink: 0;          /* no se comprime nunca */
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid #bbb;
  margin-right: 8px;
  position: relative;
  transition: border-color 0.2s, background-color 0.2s;
}

.method-option .radio-dot::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  transition: transform 0.15s ease;
}

/* Estado checked */
.method-option:has(input:checked) .radio-dot { border-color: var(--color-primary); }
.method-option:has(input:checked) .radio-dot::after { transform: translate(-50%, -50%) scale(1); }

/* Texto sin desborde */
.method-option span:last-child {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
   
   .method-option:has(input:checked) {
     border-color: var(--color-primary);
     background-color: #f0eeff;
     font-weight: 500;
   }
   
   /* Checkbox legal */
   .field-check {
     flex-direction: row;
     align-items: flex-start;
   }
   
   .check-label {
     display: flex;
     align-items: flex-start;
     gap: 8px;
     font-size: 13px;
     color: #444;
     cursor: pointer;
     line-height: 1.5;
   }
   
   .check-label input[type="checkbox"] {
     margin-top: 3px;
     flex-shrink: 0;
     width: 16px;
     height: 16px;
     accent-color: var(--color-primary);
   }
   
   .check-label a {
     color: var(--color-accent);
     text-decoration: none;
   }
   
   .check-label a:hover {
     text-decoration: underline;
   }
   
   /* Botón principal */
   .btn-submit {
     width: 100%;
     margin-top: 4px;
     font-size: 17px;
     padding: 14px;
   }
   
   /* Mensaje de confianza */
   .form-trust {
     font-size: 12px;
     color: #888;
     text-align: center;
     margin-top: 4px;
   }
   
   /* Modal de redirección */
   .modal-overlay {
     position: fixed;
     inset: 0;
     background: rgba(0,0,0,0.5);
     display: flex;
     align-items: center;
     justify-content: center;
     z-index: 9999;
   }
   
   .modal-box {
     background: #fff;
     border-radius: var(--radius);
     padding: 28px 24px;
     max-width: 340px;
     width: 90%;
     text-align: center;
     box-shadow: 0 8px 32px rgba(0,0,0,0.2);
   }
   
   .modal-box p {
     font-size: 16px;
     margin-bottom: 20px;
     line-height: 1.5;
     color: #222;
   }
   
   .modal-btns {
     display: flex;
     gap: 10px;
     justify-content: center;
   }
   
   .btn-cancelar {
     padding: 10px 20px;
     border: 1.5px solid #ccc;
     border-radius: var(--radius);
     background: transparent;
     cursor: pointer;
     font-family: var(--font-main);
     font-size: 15px;
     color: #555;
     transition: var(--transition);
   }
   
   .btn-cancelar:hover {
     background: #f0f0f0;
   }
   
   /* Responsive móvil modificando para desborde*/
   @media (max-width: 730px) {
     .field-group {
       flex-direction: column;
     }
   
     .field[style] {
       flex: 1 !important;
     }
   }
   @media (max-width: 730px) {
    .method-selector {
      display:flex;
      flex-direction: row;  /* dos columnas en móvil */
      gap:4px;
    }
  
    .method-option {
      flex: 1;
      justify-content:flex-start;
      min-width: 0;
    }
  }

  .error {
    border: 2px solid red;
    background: #ffe6e6;
  }

  .asterisk {
    color: red;
    margin-left: 4px;
    display: none;
    font-weight:400;
    font-size: 18px;
  }

